#include<iostream>
#include<string.h>
using namespace std;

typedef struct student
{
    int id;
    char name[20];
    int age;
}student;

int main(void)
{
    student stu1;
    student stu2;

    stu1.id = 1;
    // char temp[20] = "Liu C.F.";
    char temp[20] = "Xiao Ming";
    strncpy(stu1.name, temp, strlen(temp));
    stu1.age = 10;
    cout<<stu1.id<<" "<<stu1.name<<" "<<stu1.age<<endl;

    student *stu3 = &stu1;
    (*stu3).id = 2;
    cout<<stu1.id<<" "<<stu1.name<<" "<<stu1.age<<endl;
    return 0;
}